Vue.directive('salut',{
    bind: function (el, binding, vnode) {
        console.log(el, binding);
        el.value = binding.value;
    },
    update:function (el, binding, vnode, oldnode) {
        console.log('update');
    }
})

let vm = new Vue({
    el: '#app',
    data:{
        message: 'Jean'
    },
    methods: {
        demo: function (e) {
            console.log('salut');
            // e.preventDefault();
        },
        demo2: function () {
            console.log('demo2')
        }
    }


});